//获取品牌信息的接口
import request from "@/utils/request";
//获取品牌列表
//GET /admin/product/baseTrademark/{page}/{limit}
export const reqtradeMarkList=(page,limit)=>{
  return request({url:`/admin/product/baseTrademark/${page}/${limit}`,method:'get'});
}

//添加或修改品牌信息
//put /admin/product/baseTrademark/update
//post /admin/product/baseTrademark/save
export const reqAddOrUpdateTradeMark=(data)=>{
  if(data.id){
    return request({url:'/admin/product/baseTrademark/update',method:'put',data});
  }else{
    return request({url:'/admin/product/baseTrademark/save',method:'post',data})
  }
}

//删除某个品牌信息
export const reqDeteleTradeMark=(id)=>{
  return request({url:`/admin/product/baseTrademark/remove/${id}`,method:'delete'})
}
